﻿<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<jsp:include page="../include/resource-head.jsp"/>
<body>
<jsp:include page="../include/common-top.jsp"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <jsp:include page="../include/common-menu.jsp"/>
        <div class="main-content">
            <div class="page-content">
                <div class="col-xs-12">
                    <div class="row-fluid">
                        <div class="widget-box">
                            <div class="widget-header widget-header-blue widget-header-flat">
                                <h4 class="lighter">
                                    <i class="icon-plus"></i>添加新闻
                                </h4>
                            </div>
                            <div class="widget-body">
                                <div class="widget-main">
                                    <div class="step-content row-fluid position-relative">
                                        <form class="form-horizontal" action="/news/add.do" method="post" enctype="multipart/form-data">
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">新闻标题</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="text" name="name" class="width-100" required/>
                                                </div>
                                            </div>
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">新闻简介</label>
                                                <div class="col-xs-5 col-sm-5">
                                                    <input type="text" class="width-100" name="descript" required/>
                                                </div>
                                            </div>
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">展示图</label>
                                                <div class="col-xs-5 col-sm-5">
                                                    <input type="file" required class="width-100" name="file"/>
                                                </div>
                                            </div>
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">新闻内容</label>
                                                <div class="col-xs-8 col-sm-8">
                                                    <textarea  class="width-100" id="content" name="content"></textarea>
                                                </div>
                                            </div>
                                            <hr/>
                                            <div class="row-fluid wizard-actions">
                                                <button class="btn" type="reset">重置</button>
                                                <button class="btn btn-success" type="submit">提交</button>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div><!-- /.page-content -->
        </div><!-- /.main-content -->
    </div><!-- /.main-container -->
</div>
</body>
<jsp:include page="../include/resource-script.jsp"/>
<script>
    KindEditor.ready(function (K) {
        window.editor = K.create("#content", {
            uploadJson: '/file/uploadFile.do',
            fileManagerJson: '',
            allowFileManager: false
        });
    });
</script>
</html>

